package com.yunkazaixian.syntelecom.entity;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;

@JacksonXmlRootElement(localName ="ContractRoot")
@Data
public class PushMachine {
    @JacksonXmlProperty(localName = "ICCID")
    private String iccid;

    @JacksonXmlProperty(localName = "ACCNBR")
    private String telephone;

    @JacksonXmlProperty(localName = "SENDDT")
    private String sendTime;

    @JacksonXmlProperty(localName = "STATUSINFO")
    private String statusInfo;

    @JacksonXmlProperty(localName = "ACCEPTTYPE")
    private String acceptType;

    @JacksonXmlProperty(localName = "data")
    private DataInfo data;

    @Data
    public static class DataInfo {
        @JacksonXmlProperty(localName = "NewImei")
        private String newImei;

        @JacksonXmlProperty(localName = "OldImei")
        private String oldImei;

        public DataInfo(String newImei, String oldImei) {
            this.newImei = newImei;
            this.oldImei = oldImei;
        }
    }
}
